import { Injectable, Injector } from '@angular/core';
import { environment } from '../../../../../environments/environment';
import { RyBaseServiceService } from '../../../../common/RyBaseService.service';

@Injectable({
    providedIn: 'root'
})
export class JobService extends RyBaseServiceService{
    base = '/monitor/job';
    constructor(private _injector: Injector,) {
        super(_injector);
        super.setBase(this.base);
    }

    run(entity: any) {
       return  this._http.put<any>(environment.baseUrl + this.base+"/run" , entity)
    }
}
